package com.cwj.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 影片film类
 */
@Data
@EqualsAndHashCode(of = {"title","type"})  //重写equals方法
@TableName("film")
public class film implements Serializable {
    @TableId(value = "fid",type = IdType.AUTO)   //要开启自增长
    private Integer fid=null;  //影片id
    @TableField("title")
    private String title = null;  //影片名称
    @TableField("protagonist")
    private String protagonist = null; //主演
    @TableField("director")
    private String director = null;//导演
    @TableField("type")
    private String type = null; //类型
    @TableField(value = "release_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date releaseDate = null; //上映时间
    @TableField("synopsis")
    private String synopsis = null;         //剧情简介
    @TableField("location")
    private String location = null;      //影片地区
    @TableField("film_source")
    private String filmSource = null;       //影片来源
    @TableField(exist = false)
    private String _1140x1032pict = null;  //一张1140x1032图片的服务器相对路径
    @TableField(exist = false)
    private String _540x488pict = null;  //一张540x488图片的服务器相对路径
    @TableField(exist = false)
    private String _1740x1036pict = null;  //一张1740x1036图片的服务器相对路径
    @TableField(exist = false)
    private List<String> VideoPath = null; //影片在服务器的相对路径
    @TableField(exist = false)
    private Integer Episodes = null;  //集数

  }